<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script language="javascript">
	function init(){
		 document.getElementById("company").style.display="none";
	}
	function loginChange(){
		var sbutton = document.getElementById("login").value;
		if(sbutton == "企业信息注册"){
	 		document.getElementById("company").style.display="";
	 		document.getElementById("person").style.display="none";
	 		document.getElementById("login").value="个人信息注册";
		}
		if(sbutton == "个人信息注册"){
	 		document.getElementById("person").style.display="";
	 		document.getElementById("company").style.display="none";
	 		document.getElementById("login").value="企业信息注册";
		}
	}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Insert title here</title>
</head>
<body onload="init();">
<input type="button" id="login" value="企业信息注册" onclick="loginChange()">

<s:form method="POST" action="login" id="company">
	<s:textfield name="authorization.account" label="账号"/>
	<s:textfield name="authorization.password" label="密码"/>
	<s:textfield name="password" label="重复密码"/>
	<s:textfield name="company.name" label="公司名称"/>
	<s:textfield name="company.address" label="公司地址"/>
	<s:textfield name="company.tel" label="公司电话"/>
	<s:submit name="提交"/>
</s:form>


<s:form method="POST" action="login" id="person">
	<s:textfield name="person.email" label="E-mail"/>
	<s:textfield name="authorization.account" label="账号"/>
	<s:textfield name="authorization.password" label="密码"/>
	<s:textfield name="password" label="重复密码"/>
	<s:submit name="提交"/>
</s:form>
</body>
</html>